package ThreadTest;

class Mythread03 implements Runnable{

    private int count=5;

    @Override
    public void run() {

        for (int x=0;x<50;x++){
            if (this.count>0){
                System.out.println("count="+this.count--);
            }
        }
    }
}

public class ThreadDemo04 {
    public static void main(String[] args) {
        Mythread03 m1=new Mythread03();
        new Thread(m1).start(); 
        new Thread(m1).start();
        new Thread(m1).start();

    }
}
